package top.kangshuai.service;

import top.kangshuai.model.UserModel;
import top.kangshuai.utils.JsonMessage;

/**
 * User控制器的服务
 * 
 * @author ks187
 *
 */
public interface UserService {
  /**
   * 用户登录
   * 
   * @param model
   * @return
   * @throws Exception
   */
  JsonMessage login(UserModel model) throws Exception;

  /**
   * 用户注销
   * 
   * @param model
   * @return
   * @throws Exception
   */
  JsonMessage logout(UserModel model) throws Exception;
/**
 * 获取当前登录的用户信息
 * @param model
 * @return
 * @throws Exception
 */
  JsonMessage getUserInfo(UserModel model) throws Exception;

}
